package com.zlp.spring.concurrent;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class OrderController {

    @Autowired
    private OrderService orderService;


    public OrederResp getOrderInfo(Long orderId){

        OrederResp orederResp = null;
        String serialNo = UUID.randomUUID().toString();
        orederResp = orderService.getOrderInfo(orderId,serialNo);
        System.out.println(orederResp.toString());
        return orederResp;
    }
}
